--
-- Created by IntelliJ IDEA.
-- User: amy
-- Date: 2020/4/7
-- Time: 16:11
-- To change this template use File | Settings | File Templates.
--

-- 2.判断这个值与指定的值是否相等
if(redis.call('get', KEYS[1]) == ARGV[1]) then
    -- 3.相等，则要删除锁， del lock
    redis.call('del', KEYS[1])
end